# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
#
# from AUR. adapted to our styles.


pkgname=python-selenium
_pkgname=selenium
pkgver=3.141.0
pkgrel=9
pkgdesc='Python binding for Selenium Remote Control.'
arch=('any')
url='https://pypi.python.org/pypi/selenium'
license=('Apache')
depends=('python' 'python-urllib3')
makedepends=('python-setuptools')
optdepends=('geckodriver: Firefox driver support')
source=("https://pypi.io/packages/source/s/selenium/selenium-$pkgver.tar.gz")
sha512sums=('3d2afbe9e96f88e9c055a89786b5090af387d3feba4598577b70fd3e0b20c2c09c4b25af920c654f52ec7e34f23181e6d278ac05f1a1f960d2d371ce7a6b82d8')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir/" --prefix=/usr -O1 --skip-build
}

